<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="./css/api.css" />

</head>
<body>
    <div id="wrap">
        <div id="header">
            <!-- <h1>APICloud</h1> -->
        </div>
        <div id="main" class="flex-con">

        </div>
    </div>
</body>
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript">
var  jpush = null;
var  register_id = '11';
    apiready = function(){
        api.setStatusBarStyle({
          style: 'dark',
          color:'#ffffff'
        });


        var header = $api.byId('header');
        $api.fixStatusBar(header);


        var headerPos = $api.offset(header);
        var main = $api.byId('main');
        var mainPos = $api.offset(main);
        api.openFrame({
            name: 'main',
            url:'dist/index.html',//正式
            // url:'http://192.168.0.20:8080/',//cli开发环境
            bounces: false,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: mainPos.h
            },
            pageParam: {
              headerH: headerPos.h
            }
        });
        // var year = $api.byId('year');
        // year.innerHTML = new Date().getFullYear();

    };
</script>
</html>
